package com.edu.bean;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class User {

    private String username;

    private int age;

    private Date birthday;

    private Mobile mobile;

//    private String[] hobbies;
//
//    public String[] getHobbies() {
//        return hobbies;
//    }
//
//    public void setHobbies(String[] hobbies) {
//        this.hobbies = hobbies;
//    }

    private List<String> hobbies;

    private Map<String,String> relations;

    public Map<String, String> getRelations() {
        return relations;
    }

    public void setRelations(Map<String, String> relations) {
        this.relations = relations;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    public Mobile getMobile() {
        return mobile;
    }

    public void setMobile(Mobile mobile) {
        this.mobile = mobile;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }
}
